package com.example.photo_sharing.tool.Impl;

import androidx.annotation.NonNull;

import com.example.photo_sharing.tool.CommonTool;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

public class CommonImpl implements CommonTool {
    @Override
    public boolean addCommon_1(String content, String userId, String userName, String shareId) {

        return false;
    }

    @Override
    public boolean addCommon_2(String commentId, int current, int size, String shareId) {

        return false;
    }

    @Override
    public boolean getCommon_1(String userId, String focusUserId) {

        return false;
    }

    @Override
    public boolean getCommon_2(String commentId, int current, int size, String shareId) {

        return false;
    }

    private final Callback callback = new Callback() {
        @Override
        public void onFailure(@NonNull Call call, IOException e) {
            e.printStackTrace();
            System.out.println("失败");
        }

        @Override
        public void onResponse(@NonNull Call call, Response response) throws IOException {
            String responseData = response.body().string();
            System.out.println(responseData);
            System.out.println("成功");
        }
    };
}
